<div class="row-fluid">
    <div class="span12">
        <div class="grid simple">
			<div class="grid-title no-border">
				<h4>Список <span class="semi-bold">услуг</span></h4>
			</div>				
			<div class="grid-body no-border email-body">
				<?php
				/* @var $this ServicesController */
				/* @var $model Services */


				$this->breadcrumbs = array(
					'Services' => array('index'),
					'Управление',
				);
				foreach (Yii::app()->params['categories'] as $cat) {
					$cats[$cat['pageId']] = $cat['pageTitle'];
				}
				?>

				<?php
				$this->widget('bootstrap.widgets.TbGridView', array(
					'id' => 'services-grid',
					'dataProvider' => $model->search(),
					'filter' => $model,
					'htmlOptions' => array(
						'class' => 'table-bordered table-hover',
					),
					'columns' => array(
						//'serviceId',
						array(
							'name' => 'serviceCategory',
							'filter' => $cats,
							'value' => '$data->category->pageTitle'
						),
						//'category.pageTitle',
						'serviceTitle',
						'serviceWarranty',
						'serviceTime',
						'serviceDescription:html',
						array(
							'class' => 'bootstrap.widgets.TbButtonColumn',
						),
					),
				));
				?>
			</div>
        </div>	
    </div>
</div>